package com.cloudree.gllib.frament.cube;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.cloudree.gllib.frament.BaseFragment;
import com.cloudree.gllib.render.CubeRender;
import com.cloudree.gllib.render.TriangleRender;
import com.cloudree.gllib.surface.BaseGLSurface;

/**
 * A simple {@link Fragment} subclass.
 */
public class CubeFragment extends BaseFragment {


    public CubeFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        mSurface = new BaseGLSurface(getActivity());
        mSurface.setRenderer(new CubeRender());
        return mSurface;
//        return inflater.inflate(R.layout.fragment_triangle, container, false);
    }

    @Override
    public void init() {

    }
}
